package com.cea.papyrus.diagram.sequence.ui.validators;

import org.eclipse.jface.dialogs.IInputValidator;

public class BooleanInputValidator implements IInputValidator {

	public String isValid(String newText) {

		if (newText.equals("true")
				|| newText.equals("false")) {
			return null;
		} else {
			return "Bad value (expected value : true or false).";
		}
	}
}
